package net.sourceforge.openclixml;


/**
 * The exit codes of the clixml application.
 * @author dominikjungo
 */
public enum ReturnTypes {
    /** The document under test is valid against the clixml schema. */
    VALID(0),
    /** The document under test is not valid against the clixml schema. */
    INVALID(-1),
    /** Evaluating the clixml schema lead to an exception and could not complete. */
    GOTEXCEPTION(-2);
    /** The return code. */
    private int code;

    /**
     * Creates a new exit code.
     * @param codeP the code
     */
    ReturnTypes(final int codeP) {
        this.code = codeP;
    }

    /**
     * Gets the exit code of the application.
     * @return the exit code of the application
     */
    public int getCode() {
        return code;
    }
}
